package com.hdj.chapter5;

import java.io.Serializable;

/**
 * @description
 * @auther hdj
 * @date 2017/12/12.
 */
public class Address implements Cloneable,Serializable{

    private String city;

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        Address addressClone = (Address) super.clone();
        return addressClone;
    }

    @Override
    public String toString() {
        return "Address{" +
                "city='" + city + '\'' +
                '}';
    }
}
